#!/bin/bash
# CMDB 重启服务脚本

# 颜色定义
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
CYAN='\033[0;36m'
NC='\033[0m'

echo -e "${CYAN}=========================================="
echo "   CMDB - 重启服务"
echo -e "==========================================${NC}"
echo ""

# 停止服务
echo -e "${YELLOW}🛑 停止现有服务...${NC}"
./stop.sh

echo ""
echo -e "${YELLOW}⏳ 等待3秒...${NC}"
sleep 3

# 启动服务
echo ""
echo -e "${GREEN}🚀 启动服务...${NC}"
./deploy.sh

echo ""
echo -e "${GREEN}✓ 重启完成${NC}"
